package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysUserFujiaxinxiMapper;
import com.ruoyi.system.domain.SysUserFujiaxinxi;
import com.ruoyi.system.service.ISysUserFujiaxinxiService;
import com.ruoyi.common.core.text.Convert;

/**
 * 用户附加信息Service业务层处理
 * 
 * @author zxl
 * @date 2023-06-14
 */
@Service
public class SysUserFujiaxinxiServiceImpl implements ISysUserFujiaxinxiService 
{
    @Autowired
    private SysUserFujiaxinxiMapper sysUserFujiaxinxiMapper;

    /**
     * 查询用户附加信息
     * 
     * @param userid 用户附加信息主键
     * @return 用户附加信息
     */
    @Override
    public SysUserFujiaxinxi selectSysUserFujiaxinxiByUserid(String userid)
    {
        return sysUserFujiaxinxiMapper.selectSysUserFujiaxinxiByUserid(userid);
    }

    /**
     * 查询用户附加信息列表
     * 
     * @param sysUserFujiaxinxi 用户附加信息
     * @return 用户附加信息
     */
    @Override
    public List<SysUserFujiaxinxi> selectSysUserFujiaxinxiList(SysUserFujiaxinxi sysUserFujiaxinxi)
    {
        return sysUserFujiaxinxiMapper.selectSysUserFujiaxinxiList(sysUserFujiaxinxi);
    }

    /**
     * 新增用户附加信息
     * 
     * @param sysUserFujiaxinxi 用户附加信息
     * @return 结果
     */
    @Override
    public int insertSysUserFujiaxinxi(SysUserFujiaxinxi sysUserFujiaxinxi)
    {
        return sysUserFujiaxinxiMapper.insertSysUserFujiaxinxi(sysUserFujiaxinxi);
    }

    /**
     * 修改用户附加信息
     * 
     * @param sysUserFujiaxinxi 用户附加信息
     * @return 结果
     */
    @Override
    public int updateSysUserFujiaxinxi(SysUserFujiaxinxi sysUserFujiaxinxi)
    {
        return sysUserFujiaxinxiMapper.updateSysUserFujiaxinxi(sysUserFujiaxinxi);
    }

    /**
     * 批量删除用户附加信息
     * 
     * @param userids 需要删除的用户附加信息主键
     * @return 结果
     */
    @Override
    public int deleteSysUserFujiaxinxiByUserids(String userids)
    {
        return sysUserFujiaxinxiMapper.deleteSysUserFujiaxinxiByUserids(Convert.toStrArray(userids));
    }

    /**
     * 删除用户附加信息信息
     * 
     * @param userid 用户附加信息主键
     * @return 结果
     */
    @Override
    public int deleteSysUserFujiaxinxiByUserid(String userid)
    {
        return sysUserFujiaxinxiMapper.deleteSysUserFujiaxinxiByUserid(userid);
    }
}
